<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>Create Metadata</title>
        <style>
            .fieldRequired::after {
                content: "*";
                color: #6675be;
            }

            .detailsTable {
                /*border: solid 1px;*/
                border-collapse: collapse;
                width: 100%; 
            }

            .fieldError {
                color: red;
                background-color: #ffe9e0; }

            .fieldErrorMessage {
                color: red;
            }

            p.fieldErrorMessage {
                margin: 0px;
                padding: 0px; 
            }
        </style>
    </head>
    <body>
        <h1>New Metadata</h1>
        <form th:object="${metadata}" th:action="@{/metadata/create}" method="POST">
            <div th:replace="/metadata/fragments/metadata_input :: input"></div>
            <br />
            <input type="submit" value="Save" />
            <input type="reset" value="Clear" />
        </form>
        <br />
        <a th:href="@{/metadata}">Back to Metadata overview and discard data</a>
    </body>
</html>
